#pragma once
#include <d3d9.h>
#include "Node.h"

namespace RBS
{
#define FVF_TERRAIN_VERTEX (D3DFVF_XYZ | D3DFVF_DIFFUSE)

	class Terrain : public VKObject
	{
	public:
		Terrain(void);
		virtual ~Terrain(void);

	public:

		struct TERRAIN_VERTEX
		{
			float x,y,z;
			unsigned long rgb;
		};

		HRESULT Init(LPDIRECT3DDEVICE9 pDevice);
		HRESULT Render();

		LPDIRECT3DVERTEXBUFFER9 m_pVBuff;
	};
}